/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/Layout/index.vue'
import { RouteConfig } from 'vue-router'

const itemDataRouter: RouteConfig = {
  path: '/itemData',
  component: Layout,
  redirect: '/itemData/itemControl',
  name: '申报商品',
  meta: {
    title: '申报商品',
    icon: 'table'
  },
  children: [
    {
      path: 'itemControl',
      // component: () => import('@/views/itemData/page/itemControl'),
      name: 'itemControl',
      meta: { title: '申报商品库' }
    },
    {
      path: 'itemDetail/:id',
      // component: () => import('@/views/itemData/page/itemDetail'),
      name: 'itemDetail',
      meta: {
        title: '申报商品详情',
        hidden: true
      }
    },
    {
      path: 'itemForm',
      // component: () => import('@/views/itemData/page/itemForm'),
      name: 'itemForm',
      meta: {
        title: '申报商品新增',
        hidden: true
      }
    }
  ]
}
export default itemDataRouter
